PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Window Manager >

Programming With the Mac OS 8.5 Window Manager


StoreWindowIntoCollection

Stores data describing a window into a collection.

pascal OSStatus StoreWindowIntoCollection (
                     WindowPtr window,
                     Collection collection);
window
A value of type WindowPtr . Pass a pointer to the window to be stored.
collection
A reference to the collection into which the window is to be stored. You pass a reference to a previously created collection, such as that returned by the Collection Manager function NewCollection .
function result
A result code. See Result Codes.
DISCUSSION

The StoreWindowIntoCollection function stores any window--including those not created by Mac OS 8.5 Window Manager calls--into the specified collection. The Window Manager does not empty the collection beforehand, so any existing items in the collection remain. See Storing a Document Window Into a Collection for an example of how your application can call StoreWindowIntoCollection .

VERSION NOTES

Available with Mac OS 8.5 and later.

SEE ALSO

The chapter "Collection Manager" in Inside Macintosh: QuickDraw GX Environment and Utilities .


© 1999 Apple Computer, Inc. – (Last Updated 18 March 99)